<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <? /* ?>
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <? */ ?>
  <h1><?php echo $heading_title; ?></h1>
  <?php if ($success) { ?>
  <div class="success"><?php echo $success; ?></div>
  <?php } ?>
  <?php if ($error_warning) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <div class="login-content">
  <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="guest">
  <table width="97%" border="0" align="center" cellpadding="3" cellspacing="3">
    <tr>
      <td><b><?php echo $entry_firstname; ?></b></td>
      <td><input type="text" name="firstname" value="<?php echo $firstname; ?>" />
        <?php if(isset($error_firstname)) {?>
        <span class="error"><?php echo $error_firstname;?></span>
        <?php } ?></td>
      <td><b><?php echo $entry_lastname; ?></b></td>
      <td><input type="text" name="lastname" value="<?php echo $lastname; ?>" />
        <?php if(isset($error_lastname)) {?>
        <span class="error"><?php echo $error_lastname;?></span>
        <?php } ?></td>
    </tr>
    <tr>
      <td><b><?php echo $entry_email; ?></b></td>
      <td><br />
        <input type="text" name="guest_email" value="<?php echo $guest_email; ?>" />        
        <?php if(isset($error_guest_email)) {?>
        <span class="error"><?php echo $error_guest_email;?></span>
        <?php } ?></td>
      <td><b><?php echo $entry_position; ?></b></td>
      <td><select name="position_id">
              <option value=""><?php echo $text_select; ?></option>
              <?php foreach ($positions as $position) { ?>
              <?php if ($position['position_id'] == $position_id) { ?>
              <option value="<?php echo $position['position_id']; ?>" selected="selected"><?php echo $position['name']; ?></option>
              <?php } else { ?>
              <option value="<?php echo $position['position_id']; ?>"><?php echo $position['name']; ?></option>
              <?php } ?>
              <?php } ?>
            </select>
            <?php if ($error_position) { ?>
            <span class="error"><?php echo $error_position; ?></span>
            <?php } ?></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><a onclick="$('#guest').submit();" class="button"><span><?php echo $button_guest; ?></span></a></td>
    </tr>
  </table>
  </form>
  <? /* ?>
    <div class="left">
      <h2><?php echo $text_new_customer; ?></h2>
      <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="guest">
      <div class="content">
        <p><?php echo $text_register_account; ?></p>
        <b><?php echo $entry_firstname; ?></b><br />
          <input type="text" name="firstname" value="<?php echo $firstname; ?>" /> <?php if(isset($error_firstname)) {?><span class="error"><?php echo $error_firstname;?></span><?php } ?>
          <br />
          <b><?php echo $entry_lastname; ?></b><br />
          <input type="text" name="lastname" value="<?php echo $lastname; ?>" /> <?php if(isset($error_lastname)) {?><span class="error"><?php echo $error_lastname;?></span><?php } ?>		
		  <br />
        <b><?php echo $entry_email; ?></b><br />
          <input type="text" name="guest_email" value="<?php echo $guest_email; ?>" /> 
        	<a onclick="$('#guest').submit();" class="button"><span><?php echo $button_guest; ?></span></a>
          <?php if(isset($error_guest_email)) {?><span class="error"><?php echo $error_guest_email;?></span><?php } ?>
          <br />
          <br />
        </div>          
    	</form>
    </div>
    <div class="right">
      <h2><?php echo $text_returning_customer; ?></h2>
      <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="login">
        <div class="content">
          <p><?php echo $text_i_am_returning_customer; ?></p>
          <b><?php echo $entry_email; ?></b><br />
          <input type="text" name="email" value="" />
          <br />
          <br />
          <b><?php echo $entry_password; ?></b><br />
          <input type="password" name="password" value="" />
          <br />
          <a href="<?php echo $forgotten; ?>"><?php echo $text_forgotten; ?></a><br />
          <br /><br />
          <a onclick="$('#login').submit();" class="button"><span><?php echo $button_login; ?></span></a>
          <a href="<?php echo $register; ?>" class="button"><span><?php echo $button_register; ?></span></a>
          <br /><br />
          <?php if ($redirect) { ?>
          <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
          <?php } ?>
        </div>
      </form>
    </div>
	<? */ ?>
  </div>
  <?php echo $content_bottom; ?></div>
<script type="text/javascript"><!--
$('#login input').keydown(function(e) {
	if (e.keyCode == 13) {
		$('#login').submit();
	}
});
//--></script>   
<?php echo $footer; ?>